home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_slashvinetemp.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  65 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_SlashVine.cog
  4. #
  5. # Modified version of gen_SlashGrate.cog by [YB].
  6. # Damage the face with Machete to allow move through. 
  7. #
  8. # [TRM]     [GGJ]
  9. #
  10. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  11. # ========================================================================================
  12. symbols
  13.     message     startup
  14.     message     damaged
  15.     
  16.     thing        vineGhost
  17.     thing        leaf            local
  18.     
  19.     surface     web            mask=0x8
  20.     surface        webback        mask=0x8
  21.     
  22.     vector        leafVel            local
  23.     
  24.     template    leaf0=slashLeaves                        local
  25.     
  26.     int         type            local
  27.     int         player            local
  28.     int            leafNum=0          local
  29.     int            numLeaves=2        local
  30.     
  31.     
  32. end
  33. # ========================================================================================
  34. code
  35.  
  36. startup:
  37.  
  38.     player = GetLocalPlayerThing();
  39.     return;
  40.     
  41. # ========================================================================================
  42. damaged:
  43.     
  44.     if (GetParam(1) == 0x20)
  45.     {
  46.         SetWallCel(web, 1);
  47.         SetWallCel(webback, 1);
  48.         ClearAdjoinFlags(web, 0x10);
  49.         SetAdjoinFlags(webback, 2);
  50.         
  51.         for(leafNum=0; leafNum<numLeaves; leafNum=leafNum+1)                                                                        
  52.         {                                                                                                    
  53.             leaf=CreateThing(leaf0, vineGhost);
  54.             leafVel = VectorSet(0, 0, -0.1);
  55.             SetThingVel(leaf, VectorScale(leafVel, 0.7));
  56.         }       
  57.     }
  58.         
  59.     return;
  60.  
  61. # ========================================================================================
  62. end
  63.  
  64.  
  65.